package cc.uncarbon.module.custom.entity;

import cc.uncarbon.framework.crud.entity.HelioBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import cc.uncarbon.framework.core.enums.YesOrNoEnum;
import cc.uncarbon.framework.core.enums.EnabledStatusEnum;


/**
 * 用户信息
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName(value = "user")
public class UserEntity extends HelioBaseEntity<Long> {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "姓名")
    @TableField(value = "name")
    private String name;

    @Schema(description = "昵称")
    @TableField(value = "nickname")
    private String nickname;

    @Schema(description = "密码，建议加密存储")
    @TableField(value = "password")
    private String password;

    @Schema(description = "头像URL")
    @TableField(value = "avatar")
    private String avatar;

    @Schema(description = "性别,1，男，2，女")
    @TableField(value = "sex")
    private Integer sex;

    @Schema(description = "微信唯一标识")
    @TableField(value = "wx_unionid")
    private String wxUnionid;

    @Schema(description = "微信昵称")
    @TableField(value = "wx_name")
    private String wxName;

    @Schema(description = "手机号")
    @TableField(value = "phone")
    private String phone;

    @Schema(description = "生日")
    @TableField(value = "birthday")
    private LocalDate birthday;

    @Schema(description = "消费金额")
    @TableField(value = "consumption_amount")
    private BigDecimal consumptionAmount;

    @Schema(description = "进店次数")
    @TableField(value = "service_count")
    private Integer serviceCount;

    @Schema(description = "访问次数")
    @TableField(value = "visit_count")
    private Integer visitCount;

}
